package com.sds.shop.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.BoardDAO;
import com.sds.shop.vo.BoardVO;

public class BoardDetailAction extends Action {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		// TODO Auto-generated method stub
		BoardDAO bdao = new BoardDAO();
		BoardVO bvo = new BoardVO();
		bvo=bdao.getBoardDetail(request.getParameter("board_no"));
		request.setAttribute("boarddetail", bvo);
		HttpUtil.forward(request, response, "/jsp/boarddetail.jsp");
	}
	

}
